import type { LoginFormDataType, LoginResponseData } from "@/types/login"
import { http } from "@/utils/myRequest"

// 登录接口
export const loginDataApi = (data: LoginFormDataType) => {
  return http<LoginResponseData>({
    url: '/v1_0/authorizations',
    method: 'POST',
    data
  })
}
// 获取用户信息接口
export const getUserInfoApi = () => {
  return http<{name: string, mobile: string}>({
    url: '/v1_0/user/profile',
    method: 'GET'
  })
}